package com.kuaidian.service;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kuaidian.dao.TUserDaoMapper;
import com.kuaidian.pojo.Row;
import com.kuaidian.pojo.TUser;

@Service
public class UserService {

    private static Logger logger = Logger.getLogger(UserService.class);  
	
    @Autowired
    private TUserDaoMapper tUserDaoMapper;
    
    public TUser queryById(Integer id){
    	return tUserDaoMapper.queryById(id);
    }

	public int insertUser(TUser user) {
		return tUserDaoMapper.insertUser(user);
	}

	public List<TUser> select(TUser user) {
		return tUserDaoMapper.select(user);
	}
	
	public List<TUser> queryUsers(TUser user, Integer startRow, Integer pageSize) {
		return tUserDaoMapper.queryUsers(user, startRow, pageSize);
	}

	public int selectCount(TUser user) {
		return tUserDaoMapper.selectCount(user);
	}

	public int deleteUser(TUser user) {
		return tUserDaoMapper.deleteUser(user);
	}

	   
}
